﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
</head>

<body>
    <div class="page">

        <div id="header">
            <div id="title">
                <h1>The JWVdl Survey Application<br /></h1>
            </div>

            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>

                <ul id="menu">
                    <li>@Html.ActionLink("Home", "Index", "Home")</li>
                    <li>@Html.ActionLink("About", "About", "Home")</li>
                    
                    @if (User.Identity.IsAuthenticated)
                    {
                        if (User.IsInRole("e-admin"))
                        {
                            <li>@Html.ActionLink("Users", "Index", "Users")</li>
                            <li>@Html.ActionLink("Roles", "Index", "Roles")</li>
                        }
                        if (User.IsInRole("e-manager"))
                        {
                            <li>@Html.ActionLink("Surveys", "Index", "Surveys")</li>
                            <li>@Html.ActionLink("QuestionGroups", "Index", "QuestionGroups")</li>
                            <li>@Html.ActionLink("SurveyQuestions", "Index", "SurveyQuestions")</li>
                            <li>@Html.ActionLink("QuestionTypes", "Index", "QuestionTypes")</li>
                            <li>@Html.ActionLink("UserSurveys", "Index", "UserSurveys") </li>
                            <li>@Html.ActionLink("SurveyQuestionGroup", "Index", "SurveyQuestionGroup")</li>
                            <li>@Html.ActionLink("SurveyQuestionQuestionGroups", "Index", "SurveyQuestionQuestionGroups")</li>
                        }
                        if (User.IsInRole("SecurityGuard"))
                        {
                            <li>@Html.ActionLink("Security Guard", "Index", "Dashboard", new { area = "SecurityGuard" }, null)</li> 
                        }
                    }
                </ul>

            </div>
        </div>

        <div id="main">
            @RenderBody()
            <div id="footer">
            </div>
        </div>
</body>
</html>
